#!/usr/bin/env bash
# npm install -g cnpm --registry=https://registry.npmmirror.com

cnpm i
pm2 stop ice
NODE_ENV=production PORT=1701 pm2 start dist/app.js --name ice --log-date-format="YYYY-MM-DD HH:mm Z" -i 1